package org.yxk.mongodb;

import java.io.Serializable;

import org.springframework.data.mongodb.core.mapping.Document;

@Document  
public class User implements Serializable {  
    /** 
     *  
     */  
    private static final long serialVersionUID = 1L;  
    private String id;  
    private String name;  
    private int age;  
    private String password;  
      
    public String getName() {  
        return name;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }  
    public int getAge() {  
        return age;  
    }  
    public void setAge(int age) {  
        this.age = age;  
    }  
    public String getPassword() {  
        return password;  
    }  
    public void setPassword(String password) {  
        this.password = password;  
    }  
    public String getId() {  
        return id;  
    }  
    public void setId(String id) {  
        this.id = id;  
    }
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", age=" + age + ", password=" + password + "]";
	}  
      
      
  
}  